import org.junit.Test;

/**
 * @author DirkMurphy
 * 
 * @blog http://www.cnblogs.com/dirkmurphyjava/
 * 
 * @date
 * 
 * @introduction
 */
public class DownTransform
{

	@Test
	public void testTransform() throws InstantiationException,
			IllegalAccessException, ClassNotFoundException
	{
		Number n = 1.1;
		String s = n.toString();
		System.out.println(n.getClass());
		System.out.println(n.getClass());

	}

	@Test
	public void test()
	{
		Number n = 1;
		Double d = 2.2;
		int i = 1;
		System.out.println(d > i);
	}

	public void transform(Number n, String className)
	{
		Double d = null;
		String strN = n.toString();
		d = Double.parseDouble(strN);
		n = d;
		Integer in = new Integer(1);
	}

	/**
	 * so important
	 * */
	@Test
	public void testByteCompare()
	{
		Double d = 2.2;
//		Integer i = 1;
		Number n = 2.2;
		byte BD = d.byteValue();
//		byte ID = i.byteValue();
		byte ND = n.byteValue();

		System.out.println(BD >= ND);

	}
}
